const express = require('express')
const app = express()
app.all('/server', (request, response) => {
    response.setHeader('Access-Control-Allow-Origin', '*')
    // 为使自定义请求头不会报错，我们设置响应头
    response.setHeader('Access-Control-Allow-Headers', '*')
    response.send('21321321')
})
app.listen(8000, () => {
    console.log('8000服务已经启动')
})